package com.mine.java.future.price;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * @author weixiao
 * @date 2025/3/27 14:28
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class PriceResult {

    private BigDecimal originalPrice;

    private BigDecimal discount;

    private BigDecimal finalPrice;

    private String platform;

    public PriceResult(String platform) {
        this.platform = platform;
    }

    @Override
    public String toString() {
        return "PriceResult{" +
                "原始价格=" + originalPrice +
                ", 折扣=" + discount +
                ", 最终价格=" + finalPrice +
                ", 平台='" + platform + '\'' +
                '}';
    }
}
